package cn.mw.cmdb.param;

import cn.mw.cmdb.entity.InstanceCheckVo;
import cn.mw.cmdb.entity.InstanceInfo;
import cn.mw.cmdb.service.ServiceChoose;
import cn.mw.cmdb.service.impl.InstanceServiceImpl;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class BatchAddAndUpdInstanceParam implements ServiceChoose, BatchAddHandle {
    @Schema(description = "批量数据")
    public List params;

    @Schema(description = "是否支持部分导入")
    public boolean partiallyFlag;

    @Schema(description = "成功数据")
    public List<InstanceInfo> successList;

    @Schema(description = "失败数据")
    public List<InstanceCheckVo> checkFailedList;

    @Override
    @Schema(description = "模型服务Id")
    public String getServiceId() {
        return InstanceServiceImpl.ID;
    }
}
